//导入js路由文件
const files = require.context('./', true, /\.js/)
let routes = [];

files.keys().forEach(key => {
    if (key === './index.js' || key === './routers.js') return
    routes = [...routes, ...files(key).default]
})

export default routes
